Skip to content

Commit

Permalink
Fix bug with disappearing handles of Bline-tool when zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
blackwarthog authored and morevnaproject committed Apr 7, 2014
1 parent cb695a6 commit b2c0bca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions synfig-studio/src/gui/canvasview.cpp
Expand Up @@ -2742,6 +2742,7 @@ CanvasView::rebuild_ducks()
}
}while(0);
work_area->refresh_selected_ducks();
get_smach().process_event(EVENT_REFRESH_DUCKS);
work_area->queue_draw_preview();
}

Expand Down
2 changes: 1 addition & 1 deletion synfig-studio/src/gui/states/state_bline.cpp
Expand Up @@ -262,7 +262,7 @@ class studio::StateBLine_Context : public sigc::trackable
Smach::event_result event_mouse_motion_handler(const Smach::event& x);
Smach::event_result event_refresh_tool_options(const Smach::event& x);

Smach::event_result event_hijack(const Smach::event& /*x*/) { return Smach::RESULT_ACCEPT; }
Smach::event_result event_hijack(const Smach::event& /*x*/) { refresh_ducks(); return Smach::RESULT_ACCEPT; }

void refresh_tool_options();

Expand Down
1 change: 1 addition & 0 deletions synfig-studio/src/gui/states/state_draw.cpp
Expand Up @@ -369,6 +369,7 @@ StateDraw::StateDraw():
{
insert(event_def(EVENT_STOP,&StateDraw_Context::event_stop_handler));
insert(event_def(EVENT_REFRESH,&StateDraw_Context::event_refresh_handler));
insert(event_def(EVENT_REFRESH_DUCKS,&StateDraw_Context::event_refresh_handler));
insert(event_def(EVENT_WORKAREA_MOUSE_BUTTON_DOWN,&StateDraw_Context::event_mouse_down_handler));
insert(event_def(EVENT_WORKAREA_STROKE,&StateDraw_Context::event_stroke));
insert(event_def(EVENT_REFRESH_TOOL_OPTIONS,&StateDraw_Context::event_refresh_tool_options));
Expand Down

2 comments on commit b2c0bca

@morevnaproject
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@blackwarthog

Seems like this commit introduces significant regressions:

@morevnaproject
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.